package com.alibaba.system.service.impl;

import com.alibaba.basic.service.impl.BaseServiceImpl;
import com.alibaba.basic.uitl.PageList;
import com.alibaba.system.domain.Detail;
import com.alibaba.system.mapper.DetailMapper;
import com.alibaba.system.service.DetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DetailServiceImpl extends BaseServiceImpl<Detail> implements DetailService {
    @Autowired
    private DetailMapper detailMapper;


    @Override
    public PageList<Detail> findEmpByDeptId(Long id) {
        return null;
    }

    @Override
    public List<Detail> findByTypeId(Long id) {
        return detailMapper.findByTypeId(id);
    }

    @Override
    public void deleteByTypesId(Long id) {
        detailMapper.deleteByTypesId(id);
    }

}
